<?php
namespace Admin\Model;
use \Think\Model;
class MovieModel extends Model
{
	protected $fields = array('id','icon','cid','name','language','country','duration','showdate','director','drama','display');
	protected $pk = 'id';
	protected $_validate = array(
			array('name','','电影名称已存在',2,'unique',1),
			array('name','require','电影名称不能为空'),
			array('cid','require','分类ID不能为空'),
			array('duration','require','电影时长不能为空'),
			array('director','require','导演不能为空'),
			array('language','require','语言不能为空'),
			array('country','require','国家不能为空'),
			
		);
}